﻿using FCDB.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Wf5.Engine.Business;
using Wf5.Engine.Common;

namespace FCDB.Web.Models
{
    public class ActivityEntityModel : ActivityEntity
    {
        public string CheckContent { get; set; }
        public NodeStateEnum? NodeState { get; set; }
        public short CheckState { get; set; }
        public Guid? CheckUserID { get; set; }
        public string CheckUserName { get; set; }

        #region 扩展
        public DateTime? CreateTime { get; set; }
        public DateTime? CheckTime { get; set; }
        public string SendUserName { get; set; }
        public Guid? SendUserID { get; set; }
        public IList<FormCheckLog> FormCheckLogList { get; set; }
        #endregion 
        public ActivityEntityModel()
        { 
        }
        public ActivityEntityModel(ActivityEntity entity)
        {
            ProcessGUID = entity.ProcessGUID;
            TaskImplementDetail = entity.TaskImplementDetail;
            ActivityGUID = entity.ActivityGUID;
            ActivityName = entity.ActivityName;
            Description = entity.Description;
            GatewayDirectionType = entity.GatewayDirectionType;
            NodeType = entity.NodeType;
            GatewaySplitJoinType = entity.GatewaySplitJoinType;
            FromDiv = entity.FromDiv;
            Index = entity.Index;
        }


    }
}